#include "StdAfx.h"
#include "sounditem.h"

static const int THUMBNAIL_WIDTH = 128; ///< default thumbnail width

/// \class SoundItem
/// \brief
///
///
///
SoundItem::SoundItem()
{}

SoundItem::SoundItem(QString &path, QByteArray &sound_data)
{
	mPath = path;
	m_sound_data=sound_data;
} 

SoundItem::~SoundItem()
{
}

//////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////

/// item roles
QString SoundItem::path() const
{
	return mPath;
}

QByteArray SoundItem::sound_data() const
{
	return m_sound_data;
}

QImage SoundItem::thumbnail() const
{
	return mThumbnail;
}

//Platzhalter
bool SoundItem::train() const
{
	return mTrain;
}

//////////////////////////////////////////////////////////////////////////